export default {
  line: {
    xAxis: [
      {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
      },
    ],
    yAxis: [
      {
        type: 'value',
      },
    ],
    series: [
      {
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line',
      },
    ],
  },//折线图模板
  pie: {
    series: [
      {
        type: 'pie',

        data: [
          { value: 335, name: '直接访问' },
          { value: 310, name: '邮件营销' },
          { value: 234, name: '联盟广告' },
          { value: 135, name: '视频广告' },
          { value: 1548, name: '搜索引擎' },
        ],
      },
    ],
  },//饼图模板
  radar: {
    radar: [
      {
        indicator: [
          { name: '销售（sales）', max: 6500 },
          { name: '管理（Administration）', max: 16000 },
          { name: '信息技术（Information Techology）', max: 30000 },
          { name: '客服（Customer Support）', max: 38000 },
          { name: '研发（Development）', max: 52000 },
          { name: '市场（Marketing）', max: 25000 },
        ],
      },
    ],
    series: [
      {
        type: 'radar',
        // areaStyle: {normal: {}},
        data: [
          {
            value: [4300, 10000, 28000, 35000, 50000, 19000],
          },
          {
            value: [5000, 14000, 28000, 31000, 42000, 21000],
          },
        ],
      },
    ],
  },//雷达图模板
  scatter: {
    xAxis: [{}],
    yAxis: [{}],
    series: [
      {
        data: [
          [10.0, 8.04],
          [8.0, 6.95],
          [13.0, 7.58],
          [9.0, 8.81],
          [11.0, 8.33],
          [14.0, 9.96],
          [6.0, 7.24],
          [4.0, 4.26],
          [12.0, 10.84],
          [7.0, 4.82],
          [5.0, 5.68],
        ],
        type: 'scatter',
      },
    ],
  },//散点图模板
  tree: {
    series: [
      {
        type: 'tree',
        label: {
          normal: {
            position: 'left',
            verticalAlign: 'middle',
            align: 'right',
            fontSize: 12,
          },
        },

        leaves: {
          label: {
            normal: {
              position: 'right',
              verticalAlign: 'middle',
              align: 'left',
            },
          },
        },

        expandAndCollapse: true,
        data: [
          {
            name: 'test1',
            children: [
              {
                name: '1',
                children: [
                  { name: '2', value: 1 },
                  { name: '2', value: 2 },
                  { name: '2', value: 3 },
                ],
              },
            ],
          },
        ],
      },
    ], //series
  }, //树模板
  map: {
    visualMap: [
      {
        show: true,
        min: 0,
        max: 180,
        text: ['高', '低'],
        orient: 'vertical',
      },
    ],
    series: [
      {
        name: 'map',
        type: 'map',
        map: 'china',
       
        data: [
          { name: '北京', value: 177 },
          { name: '河南', value: 137 },
          { name: '四川', value: 125 },
          { name: '广东', value: 123 },
          { name: '山东', value: 119 },
          { name: '福建', value: 116 },
          { name: '湖北', value: 116 },
          { name: '浙江', value: 114 },
          { name: '湖南', value: 114 },
          { name: '安徽', value: 109 },
          { name: '河北', value: 102 },
          { name: '江苏', value: 92 },
          { name: '江西', value: 91 },
          { name: '重庆', value: 91 },
          { name: '云南', value: 83 },
          { name: '吉林', value: 82 },
          { name: '山西', value: 81 },
          { name: '陕西', value: 80 },
          { name: '辽宁', value: 67 },
          { name: '新疆', value: 67 },
          { name: '黑龙江', value: 66 },
          { name: '贵州', value: 62 },
          { name: '广西', value: 59 },
          { name: '甘肃', value: 56 },
          { name: '内蒙古', value: 47 },
          { name: '天津', value: 42 },
          { name: '上海', value: 24 },
          { name: '宁夏', value: 18 },
          { name: '海南', value: 14 },
          { name: '青海', value: 10 },
          { name: '西藏', value: 9 },
        ],
      },
    ],
  },//地图模板
  relate: {
    series: [
      {
        type: 'graph',
        roam:false,
        symbolSize:50,
        label:{
          show:true,
        },
        data: [
          {
            name: '节点1',
            x: 300,
            y: 300,
          },
          {
            name: '节点2',
            x: 800,
            y: 300,
          },
          {
            name: '节点3',
            x: 550,
            y: 100,
          },
          {
            name: '节点4',
            x: 550,
            y: 500,
          },
        ],
        // links: [],
        links: [
          {
            source: 0,
            target: 1,
          },
          {
            source: '节点2',
            target: '节点1',
          },
          {
            source: '节点1',
            target: '节点3',
          },
          {
            source: '节点2',
            target: '节点3',
          },
          {
            source: '节点2',
            target: '节点4',
          },
          {
            source: '节点1',
            target: '节点4',
          },
        ],
      },
    ],
  },//relate 关系图模板
};
